home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / kickstart tools / zkick / zkick.h < prev    next >
Text File  |  1996-04-07  |  850b  |  9 lines

  1. #define EQUAL(ASTART,AEND,BSTART,BEND) ((ASTART)==(BSTART) && (AEND)==(BEND))
  2. #define BELOW(ASTART,AEND,BSTART,BEND) ((ASTART)<(BSTART) && (AEND)<(BSTART))
  3. #define ABOVE(ASTART,AEND,BSTART,BEND) ((BSTART)<(ASTART) && (BEND)<(ASTART))
  4. #define SUBSET(ASTART,AEND,BSTART,BEND) ((ASTART)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  5. #define SUPERSET(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  6. #define INTERLOW(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  7. #define INTERHI(ASTART,AEND,BSTART,BEND) ((BSTART)<=(ASTART) && (BEND)>=(ASTART) && (BEND)<=(AEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  8. #define INTERSECT(ASTART,AEND,BSTART,BEND) (INTERHI(ASTART,AEND,BSTART,BEND) || INTERLOW(ASTART,AEND,BSTART,BEND))
  9.